package org.dnd.rcp.editor.actions;

import org.dnd.rcp.editor.text.IActionsID;
import org.eclipse.jface.action.Action;
import org.eclipse.ui.IEditorPart;

/**
 * Save Action
 * 
 * @author dendy
 * 
 */
public class SaveTextAction extends Action {

	public SaveTextAction() {
		setId(IActionsID.SAVE_ID);
	}

	private IEditorPart mEditor;

	public void setEditor(IEditorPart newEditor) {
		mEditor = newEditor;
	}

	public void run() {
		mEditor.doSave(null);
	}

}
